<?php
require("include/top.php");
if ((!empty($_SESSION['vendor']['id']))||(!empty($_SESSION['vendor']['id']))) {
    if (isset($_POST['fichier'])) {
        require(FORM_PATH."import_xml.form.php");
        $tpl->assign("all", $all);
        $tpl->assign("maj", $maj);
        $tpl->assign("ajout", $ajout);
        $tpl->assign("erreurs", $erreurs);
        $tpl->assign("del", $delete);
    }
    $tpl->display("header.tpl");
    $tpl->display("menu.tpl");
    $tpl->display("import_xml.tpl");
    $tpl->display("footer.tpl");
}
else{header('Location:login.php');}
require("include/bottom.php");
?>